<%@ Page Language="C#" MasterPageFile="~/quickLMS.master" AutoEventWireup="true" CodeFile="NewUser.aspx.cs" Inherits="NewUser" Title="New User" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">



    <asp:CreateUserWizard 
        ID="CreateUserWizard1" 
        runat="server" 
        ContinueDestinationPageUrl="~/" 
        OnCreatedUser="CreateUserWizard1_CreatedUser"
        StartNextButtonText="Next >>"
        StepNextButtonText="Next >>"
        StepPreviousButtonText="<< Previous"
        >
        <WizardSteps>
            
                <asp:WizardStep ID="CreateUserWizardStep2" runat="server" Title="Step 2: Personal Information">
                
                    

                            
                            
                        <table style="font-size: 10pt; font-family: Verdana" border="0" width="400">
                            <tr>
                                <td style="font-weight: bold; color: white; background-color: #6b696b" align="center" colspan="2">
                                    Personal Information
                                </td>
                            </tr>
                            
                            <tr>
                                <td align="right" width="170">
                                    Street Address:
                                </td>
                                <td>
                                    <asp:TextBox runat="server" ID="StreetAddress"></asp:TextBox>
                                </td>
                            </tr>
                            <tr>
                                <td align="right" width="170">
                                    City:
                                </td>
                                <td>
                                    <asp:TextBox runat="server" ID="City"></asp:TextBox>
                                </td>
                            </tr>
                            <tr>
                                <td align="right" width="170">
                                    State / Province:
                                </td>
                                <td>
                                    <asp:TextBox runat="server" ID="StateProvince"></asp:TextBox>
                                </td>
                            </tr>
                            <tr>
                                <td align="right" width="170">
                                    Zip / Postal Code:
                                </td>
                                <td>
                                    <asp:TextBox runat="server" ID="PostalCode"></asp:TextBox>
                                </td>
                            </tr>
                            <tr>
                                <td align="right" width="170">
                                    Country:
                                </td>
                                <td>
                                    <asp:TextBox runat="server" ID="Country"></asp:TextBox>
                                </td>
                            </tr>
                            <tr>
                                <td align="right" width="170">
                                    Phone Number:
                                </td>
                                <td>
                                    <asp:TextBox runat="server" ID="PhoneNumber"></asp:TextBox>
                                </td>
                            </tr>
                            
                            <tr>
                                <td align="right" width="170">
                                    Title:
                                </td>
                                <td>
                                    <asp:TextBox runat="server" ID="JobTitle"></asp:TextBox>
                                </td>
                            </tr>
                            
                            <tr>
                                <td align="right" width="170">
                                    Cost Center:
                                </td>
                                <td>
                                    <asp:TextBox runat="server" ID="txtCostCenter"></asp:TextBox>
                                </td>
                            </tr>
                            
                            
                        </table>
                   
                </asp:WizardStep>
                <asp:WizardStep ID="CreateUserWizardStep3" runat="server" Title="Step 3: Pick a group">
                    

                        <table style="font-size: 10pt; font-family: Verdana" border="0" width="400">
                            <tr>
                                <td style="font-weight: bold; color: white; background-color: #6b696b" align="center" colspan="2">
                                    Group Lookup
                                    <br />
                                    <br />
                                    
                                </td>
                            </tr>
                            
                            <tr>
                                <td align="right" width="170">
                                    Group Code:
                                </td>
                                <td>
                                    <asp:TextBox runat="server" ID="txtGroupCode"></asp:TextBox>
                                    <asp:Button ID="btnLookupGroup" runat="server" Text="Lookup Group Code" OnClick="btnLookupGroup_Click" />
                                </td>
                            </tr>
                            <tr>
                                <td align="right" width="170">
                                    Group Name:
                                </td>
                                <td>
                                    <asp:Label runat="server" ID="lblGroupName" />
                                </td>
                            </tr>
                        </table>
                    
                </asp:WizardStep>
            <asp:CreateUserWizardStep ID="CreateUserWizardStep1" runat="server" Title="Step 1: Basic User Information">
                <ContentTemplate>

                        <table style="font-size: 10pt; font-family: Verdana" border="0" width="400">
                            <tr>
                                <td style="font-weight: bold; color: white; background-color: #6b696b" align="center" colspan="2">
                                    Create Your UserID
                                </td>
                            </tr>
                            <tr>
                                <td align="right">
                                    <asp:Label ID="UserNameLabel" runat="server" AssociatedControlID="UserName">UserID: (Please use your email)</asp:Label></td>
                                <td>
                                    <asp:TextBox ID="UserName" runat="server"></asp:TextBox>
                                    <asp:RequiredFieldValidator ID="UserNameRequired" runat="server" ToolTip="User Name is required."
                                        ErrorMessage="User Name is required." ValidationGroup="CreateUserWizard1" ControlToValidate="UserName">
                                        *</asp:RequiredFieldValidator>
                                </td>
                            </tr>
                            
                            <tr>
                                <td align="right">
                                    <asp:Label ID="Label1" runat="server" AssociatedControlID="FirstName">First Name:</asp:Label></td>
                                <td>
                                    <asp:TextBox ID="FirstName" runat="server"></asp:TextBox>
                                    <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ToolTip="User Name is required."
                                        ErrorMessage="User Name is required." ValidationGroup="CreateUserWizard1" ControlToValidate="FirstName">
                                        *</asp:RequiredFieldValidator>
                                </td>
                            </tr>
                            <tr>
                                <td align="right">
                                    <asp:Label ID="Label2" runat="server" AssociatedControlID="LastName">Last Name:</asp:Label></td>
                                <td>
                                    <asp:TextBox ID="LastName" runat="server"></asp:TextBox>
                                    <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" ToolTip="Last Name is required."
                                        ErrorMessage="Last Name is required." ValidationGroup="CreateUserWizard1" ControlToValidate="LastName">
                                        *</asp:RequiredFieldValidator>
                                </td>
                            </tr>
                            
                            <tr>
                                <td align="right">
                                    <asp:Label ID="PasswordLabel" runat="server" AssociatedControlID="Password">Password:</asp:Label></td>
                                <td>
                                    <asp:TextBox ID="Password" runat="server" TextMode="Password"></asp:TextBox>
                                    <asp:RequiredFieldValidator ID="PasswordRequired" runat="server" ToolTip="Password is required."
                                        ErrorMessage="Password is required." ValidationGroup="CreateUserWizard1" ControlToValidate="Password">
                                        *</asp:RequiredFieldValidator>
                                </td>
                            </tr>
                            <tr>
                                <td align="right">
                                    <asp:Label ID="ConfirmPasswordLabel" runat="server" AssociatedControlID="ConfirmPassword">Re-Type Password:</asp:Label>
                                </td>
                                <td>
                                    <asp:TextBox ID="ConfirmPassword" runat="server" TextMode="Password"></asp:TextBox>
                                    <asp:RequiredFieldValidator ID="ConfirmPasswordRequired" runat="server" ToolTip="Confirm Password is required."
                                        ErrorMessage="Confirm Password is required." ValidationGroup="CreateUserWizard1"
                                        ControlToValidate="ConfirmPassword">
                                        *</asp:RequiredFieldValidator>
                                </td>
                            </tr>
                            <tr visible="false">
                                <td align="right">
                                    <asp:Label ID="EmailLabel" runat="server" AssociatedControlID="Email">Email:</asp:Label>
                                </td>
                                <td>
                                    <asp:TextBox ID="Email" runat="server"></asp:TextBox>
                                    <asp:RequiredFieldValidator ID="EmailRequired" runat="server" ToolTip="Email is required."
                                        ErrorMessage="Email is required." ValidationGroup="CreateUserWizard1" ControlToValidate="Email" Enabled="false">
                                        *</asp:RequiredFieldValidator>
                                </td>
                            </tr>
                            <tr>
                                <td align="center" colspan="2">
                                    <asp:CompareValidator ID="PasswordCompare" runat="server" ErrorMessage="The Password and Confirmation Password must match."
                                        ValidationGroup="CreateUserWizard1" ControlToValidate="ConfirmPassword" ControlToCompare="Password"
                                        Display="Dynamic">
                                    </asp:CompareValidator>
                                </td>
                            </tr>
                            <tr>
                                <td style="color: red" align="center" colspan="2">
                                    <asp:Literal ID="ErrorMessage" runat="server" EnableViewState="False"></asp:Literal>
                                </td>
                            </tr>
                        </table>
                    </ContentTemplate>
                </asp:CreateUserWizardStep>
            <asp:CompleteWizardStep runat="server">
            </asp:CompleteWizardStep>
        </WizardSteps>
    </asp:CreateUserWizard>
</asp:Content>